<template>
	<view class="P_2">
		<view class="bg_fff B_radius_5 P_2">
			<view @click="uOpenWin('./noticeDet?id='+item.id)" class="line_bom PTB_1" v-for="(item,i) in list" :key='i' >
				<view class="font_weight_bold PTB_1">
					{{item.title}}
				</view>
				<view v-html="item.content" class="PTB_2 text_overflow_2">

				</view>
				<view class="textR color_gray fontS_12">
					{{item.updated_at}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			}
		},
		onLoad() {
			this.getList()
		},
		methods: {
			getList(){
				let _this = this;
				this.$req('index/noticeList',{},function(res){
					if(res.code==1){
						_this.list = res.data;
					}else{
						_this.toast(res.msg)
					}
				})
			}
		}
	}
</script>

<style>

</style>
